Fk:loadTranslationTable{
  ["dajubei__bujue"] = "步绝",
  [":dajubei__bujue"] = "主公技，一名“明”势力角色死亡时，其可以令场上所有“明”势力角色本局内造成的伤害基数+1。",
}

local bujue = fk.CreateSkill{
  name = "dajubei__bujue",
  tags = {Skill.Lord},
}

bujue:addAcquireEffect(function (self, player)
  player.room:setBanner("@dajubei__bujue", 0)
end)

bujue:addEffect(fk.Deathed, {
  anim_type = "masochism",
  can_trigger = function (self, event, target, player, data)
    if player:hasSkill(bujue.name) then
      return data.who.kingdom == "ming"
    end
  end,
  on_cost = function (self, event, target, player, data)
    local room = player.room
    return room:askToSkillInvoke(data.who, {
      skill_name = bujue.name,
      prompt = "#dajubei__bujue-ivk",
    })
  end,
  on_use = function (self, event, target, player, data)
    local room = player.room
    local n = room:getBanner("@dajubei__bujue")
    room:setBanner("@dajubei__bujue", n + 1)
  end
})

bujue:addEffect(fk.DamageCaused, {
  is_delay_effect = true,
  anim_type = "offensive",
  can_trigger = function (self, event, target, player, data)
    local room = player.room
    return room:getBanner("@dajubei__bujue") > 0 and target.kingdom == "ming" and data.to == player
  end,
  on_trigger = function (self, event, target, player, data)
    data.damage = data.damage + 1
  end
})

return bujue